package org.gitee.weapp.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.gitee.weapp.domain.entity.Coupon;

import java.util.List;

@Mapper
public interface CouponMapper {

    List<Coupon> getCouponList(@Param("userId") String userId, @Param("isExpired") Boolean isExpired);

    Coupon getCouponById(@Param("id") String id);

    int add(Coupon coupon);

    int update(Coupon coupon);
}
